

#import "Animal.h"

@implementation Animal

- (NSString *)description
{
    return self.name;
}


- (void) eat
{
    NSLog(@"Animal eat!");
}

- (void) sleep
{
    NSLog(@"Animal sleep!");
}

- (NSComparisonResult)compare:(Animal *)ani
{
    return [self.name compare:ani.name];
}

@end
